package com.iotimc.attendancesystem.datautil;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class DataUtil
{
	public static void saveData(Context context, String key, String value){
		SharedPreferences preferences=context.getSharedPreferences("GDFaceAttend", Context.MODE_PRIVATE);
		Editor edit=preferences.edit();
		edit.putString(key, value);
		edit.commit();
	}

	public static String getString(Context context, String key){
		SharedPreferences preferences=context.getSharedPreferences("GDFaceAttend", Context.MODE_PRIVATE);
		String value = preferences.getString(key, "");
		return value;
	}
}
